package cn.hxth.cloud.service.service;

import cn.hxth.cloud.api.domain.ProductionOrder;
import cn.hxth.cloud.service.commons.config.FeignClientConfig;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value="PRODUCTION-PROVIDER",configuration=FeignClientConfig.class)
@RequestMapping("/production/")
public interface ProductionService {
    @PostMapping("insertProductionOrder")
    public  Boolean insertProductionOrder(@RequestBody ProductionOrder[] productionOrders,@RequestParam("mid") String mid) ;
    @PutMapping("updateStatus")
    public Boolean updateStatus(@RequestBody ProductionOrder productionOrder);
    @PutMapping("startProducing")
    public Boolean startProducing(@RequestParam("id") Long id) ;
    @PutMapping("doNext")
    public Boolean doNext(@RequestParam("id") Long id) ;
}
